home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_bab_tentpartroller.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  84 lines

  1. # Jones 3D Cog Script
  2. #
  3. # BAB_CourtyardCommmie.cog
  4. # This cog is based on the brilliant groundbreaking cog work pioneered by Reed Derleth
  5. #
  6. # [SXC]
  7. #
  8. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  9. # ========================================================================================
  10.  
  11. symbols
  12.  
  13.     message     startup
  14.     message     arrived
  15.     
  16.     thing       commie0
  17.     thing       tgt0
  18.     thing       tgt1
  19.     thing       tgt2
  20.     thing       tgt3
  21.         
  22.     int         done=0         local
  23.     int         curframe=0      local
  24.         
  25. end
  26.  
  27. code
  28.  
  29. # ========================================================================================
  30. startup:
  31.     AISetMoveSpeed(commie0, 1.5);
  32.     AISetCutsceneMode(commie0);
  33.     AISetLookThing(commie0, tgt1);
  34.     AISetMoveFrame(commie0, 1);
  35.     curframe = 1;
  36.     return;
  37.  
  38. #----------------------------------------------------------------------------------------
  39. arrived:
  40.     //print("the ai has arrived");
  41.     if (curframe == 0)
  42.     {
  43.         //print("at frame 0");
  44.         AISetCutsceneMode(commie0);
  45.         AISetLookThing(commie0, tgt1);
  46.         Sleep(0.5);
  47.         AISetMoveFrame(commie0, 1);
  48.     }
  49.     
  50.     if (curframe == 1)
  51.     {
  52.         //print("at frame 1");
  53.         AISetLookThing(commie0, tgt2);
  54.         Sleep(0.5);
  55.         AISetMoveFrame(commie0, 2);
  56.     }
  57.     
  58.     if (curframe == 2)
  59.     {
  60.         //print("at frame 2");
  61.         AISetLookThing(commie0, tgt3);
  62.         Sleep(0.5);
  63.         AISetMoveFrame(commie0, 3);
  64.     }
  65.     
  66.     if (curframe == 3)
  67.     {
  68.         //print("at frame 3");
  69.         //AIClearCutsceneMode(commie0);
  70.         AISetLookThing(commie0, tgt0);
  71.         Sleep(0.5);
  72.         AISetMoveFrame(commie0, 0);
  73.     }
  74.     curframe = curframe + 1;
  75.     if (curframe == 4)
  76.     {
  77.         curframe = 0;
  78.         
  79.     }
  80.     
  81.     return;
  82. #----------------------------------------------------------------------------------------
  83. end
  84.